package com.wsd.smartcarwasher.util;

import org.eclipse.paho.client.mqttv3.MqttMessage;

public class MqttUtil {

    public static MqttMessage getMqttMessage(byte[] message) {
        MqttMessage mqttMessage = new MqttMessage();
        mqttMessage.setQos(2);
        mqttMessage.setRetained(false);
        mqttMessage.setPayload(message);
        return mqttMessage;
    }

}
